
// mxgtdDlg.h : header file
//

#pragma once
#include "afxcmn.h"
#include "GTDTreeCtrl.h"
#include "EasySize.h"
#include "afxwin.h"

// CmxgtdDlg dialog
class CmxgtdDlg : public CDialogEx
{
// Construction
	DECLARE_EASYSIZE
public:
	CmxgtdDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_MXGTD_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonEdit();
	
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	
	afx_msg void OnBnClickedButton1();
protected:
	void LoadContextList();
	CGTDTreeCtrl m_taskTodoListCtrl;
	GtdContext* getCurContext()const;
public:
	CComboBox m_ComboCctxlist;
	afx_msg void OnCbnSelchangeComboCtxsel();
};
